
      	   	      <#include "/common/freemarker/macro_common.ftl">
      	   	       
      	   	       
      	   	       
      	   	       <div class="form-group">
	                    	<label class="col-md-2 control-label">奖品表  </label>
	                        <div class="col-md-10">
		                          <table class="table table-bordered table-condensed">
									<thead>
									<tr>
											<th>序号</th> 
											<th>奖品等级</th> 
											<th>奖品名称</th> 
								 
											<#if readOnly?exists==false><th>操作</th> </#if>
									</tr>
									</thead>
									<tbody>
									    <#list rhs["subList"] as sub>
										 <tr>
											<td>${sub_index+1}</td>
											<td>${sub.grade?if_exists}</td>
											<td>${sub.name?if_exists}</td>
 
											<#if readOnly?exists==false>
												<td>
													<a href="javascript:editSub('${sub.uuid}' )">修改</a>&nbsp;&nbsp;
													<a href="javascript:deleteSub('${sub.uuid}' )">删除</a>
													<#if sub_index!=0>
														<a href="javascript:moveSub('${sub.uuid}',1 )"> <i class="fa fa-long-arrow-up"></i>上移</a>&nbsp;&nbsp;
													</#if>
													<#if sub_index!=rhs["subList"]?size-1>
														<a href="javascript:moveSub('${sub.uuid}',0 )"><i class="fa fa-long-arrow-down"></i>下移</a>
													</#if>													
												</td> 
											</#if>
											
										</tr>
										</#list> 
									</tbody>
								</table>
	                    	</div>              	
	               </div>                     
                                
	             <div class="form-group">
	            	<div class="col-md-offset-2 col-md-10">
						<#if readOnly?exists==false> <a href="javascript:doAdd();" id="createTaskHref" class="btn btn-sm btn-primary">新增记录</a></#if> 
	            		<input type="button" class="btn btn-sm btn-default" value="返 回" onclick="javascript:history.go(-1)"/>
	            	</div>
	            </div>
						 